package org.edu.modules.stu.stu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-考勤信息表
 */
@TableName("ve_stu_check")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="考勤信息表对象", description="ve_stu_check")
public class VeStuCheck extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "学生id")
        private Integer stuId;

    @TableField
    @ApiModelProperty(value = "姓名")
    @Length(max = 30)
        private String name;

    @TableField
    @ApiModelProperty(value = "学号")
    @Length(max = 30)
        private String code;

    @TableField
    @ApiModelProperty(value = "专业id")
        private Integer specId;

    @TableField
    @ApiModelProperty(value = "班级id")
        private Integer bjId;

    @TableField
    @ApiModelProperty(value = "教学班级id")
        private Integer jxbjId;

    @TableField
    @ApiModelProperty(value = "考勤类型id")
        private Integer typeId;

    @TableField
    @ApiModelProperty(value = "考勤名称id（-1早自习、-2晚自习为系统内定，其他为课堂id）")
        private Integer courseId;

    @TableField
    @ApiModelProperty(value = "考勤名称")
    @Length(max = 100)
        private String courseName;

    @TableField
    @ApiModelProperty(value = "异常时间")
        @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
        private Date checkTime;

    @TableField
    @ApiModelProperty(value = "备注")
    @Length(max = 65535)
        private String content;
}
